package xsort

import (
	

	
)

type nodeSort []tree.Node

func ( nodeSort) () int      { return len() }
func ( nodeSort) (,  int) { [], [] = [], [] }
func ( nodeSort) (,  int) bool {
	return [].Pos() < [].Pos()
}

//SortNodes sorts the array by the node document order
func ( []tree.Node) {
	sort.Sort(nodeSort())
}